<?php

namespace App\Http\Controllers\home;

use Illuminate\Http\Request;

use App\Http\Controllers\Controller;

use DB;

class IndexController extends Controller
{
   public function index()
   { 
   	if(session()->has('homeuser')){
   		$se=session('homeuser'); 
   		$name = $se->name;
   	}else{
   		$name = null;
   	}
   	return view('home.index',['name'=>$name]);
   }
}
